-- GENERATED SPELL FOR [Fordragon High Priest] --


function spell0_27677(pUnit, Event) --@Circle of Healing,Heal--
pUnit:FullCastSpellOnTarget(49306,pUnit)
pUnit:RegisterEvent('Sorts_27677', 547, 1)
end

function spell1_27677(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(49348,pUnit)
pUnit:RegisterEvent('Sorts_27677', 3500, 1)
end

function spell2_27677(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(25054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27677', 2500, 1)
end

function spell3_27677(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(32595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27677', 30291, 1)
end

function spell4_27677(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(25058,pUnit)
pUnit:RegisterEvent('Sorts_27677', 15000, 1)
end

function Sorts_27677(pUnit, Event)
local choix_sorts_27677 = math.random(0, 4)
if choix_sorts_27677 == 0 then
pUnit:RegisterEvent('spell0_27677', 1, 1)
end
if choix_sorts_27677 == 1 then
pUnit:RegisterEvent('spell1_27677', 1, 1)
end
if choix_sorts_27677 == 2 then
pUnit:RegisterEvent('spell2_27677', 1, 1)
end
if choix_sorts_27677 == 3 then
pUnit:RegisterEvent('spell3_27677', 1, 1)
end
if choix_sorts_27677 == 4 then
pUnit:RegisterEvent('spell4_27677', 1, 1)
end
end

function mob27677_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27677', math.random(1500, 3000), 1)
end

function mob27677_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27677_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27677_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27677, 1, 'mob27677_Action')
RegisterUnitEvent(27677, 2, 'mob27677_Leave')
RegisterUnitEvent(27677, 3, 'mob27677_Kill')
RegisterUnitEvent(27677, 4, 'mob27677_Die')
